home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Drawing / PatternMode.h < prev    next >
Text File  |  1997-06-28  |  785b  |  47 lines

  1. // PatternMode.h
  2.  
  3. #ifndef PatternMode_h
  4. #define PatternMode_h
  5.  
  6. #ifndef Integers_h
  7. #include "Integers.h"
  8. #endif
  9.  
  10. class PatternMode
  11.   {
  12.     public:
  13.         enum Mode
  14.           {
  15.             copy        = ::patCopy,
  16.             or            = ::patOr,
  17.             xor        = ::patXor,
  18.             bic        = ::patBic,
  19.             notCopy    = ::notPatCopy,
  20.             notOr        = ::notPatOr,
  21.             notXor    = ::notPatXor,
  22.             notBic    = ::notPatBic,
  23.             
  24.             blend                = ::blend,
  25.             addPin            = ::addPin,
  26.             addOver            = ::addOver,
  27.             subPin            = ::subPin,
  28.             transparent        = ::transparent,
  29.             addMax            = ::addMax,
  30.             subOver            = ::subOver,
  31.             addMin            = ::adMin    /* sic */
  32.           };
  33.     
  34.     private:
  35.         Mode mode;
  36.     
  37.     public:
  38.         PatternMode( Mode m )        : mode( m )        {}
  39.         
  40.         static PatternMode Make( int16 value )
  41.             { return static_cast<Mode>( value ); }
  42.     
  43.         int16 Value() const            { return mode; }
  44.   };
  45.  
  46. #endif
  47.